//
//  BLNavigationViewController.swift
//  许鲜
//
//  Created by hbl on 16/4/22.
//  Copyright © 2016年 hbl. All rights reserved.
//

import UIKit

class BLNavigationViewController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        let bar = UINavigationBar.appearance()
        bar.setBackgroundImage(UIImage(named: "navBg")!, forBarMetrics: UIBarMetrics.Default)
        bar.tintColor = UIColor.whiteColor()
        
        var attr = Dictionary<String,AnyObject>()
        attr[NSForegroundColorAttributeName] = UIColor.whiteColor()
        //attr[NSFontAttributeName] = UIFont.systemFontOfSize(14)
        bar.titleTextAttributes = attr
        
         let item = UIBarButtonItem.appearance()
        var attrItem  = Dictionary<String, AnyObject>()
        //attrItem[NSFontAttributeName] = UIFont.systemFontOfSize(13)
        attrItem[NSForegroundColorAttributeName] = UIColor.whiteColor()
        item.setTitleTextAttributes(attrItem, forState: UIControlState.Normal)
        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
